@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  margin: 10px;
  height: calc(100vh - 135px);
  background-color: #ffffff;
  .search-container{
    width: 100%;
    padding: 20px 20px 0 20px;
    background-color: #ffffff;
    .search-container-main{
      background-color: #F5F5F5;
      padding: 10px;
      .search-container-main-pop{
        background-color: #F5F5F5;
        padding: 10px;
      }
    }
    .el-form-item{
      margin-right: 0;
      margin-bottom: 10px;
      width: 25%;
      padding-right: 20px;
      .el-form-item__label{
        color: #313131;
        font-size: 13px;
        padding-bottom: 0px;
        font-weight: normal;
        line-height: normal;
        display: block;
      }
      .el-form-item__content{
        display: block;
      }
      .el-input__inner{
        color: #565656;;
        height: 30px;
        line-height: 30px;
        padding: 0 10px;
      }
      .el-date-editor.el-input, .el-date-editor.el-input__inner, .el-select{
        width: 100%;
      }
      input::-webkit-input-placeholder {
        font-size: 14px;
        font-weight:100;
    }
    input::-moz-placeholder { font-size: 14px;
      font-weight:100;} /* firefox 19+ */
    input:-ms-input-placeholder { font-size: 14px;
      font-weight:100; } /* Internet Explorer 10+ */
    input:-moz-placeholder {font-size: 14px;
      font-weight:100;} /* firefox 14-18 */
    }
  }
  .tabs-container{
    background-color: #ffffff;
    padding-top: 10px;
  }
  .table-container{
    background-color: #ffffff;
    padding:0 20px 20px 20px;
    .el-checkbox__label{
      font-size: 14px;
    }
  }
  .form-container{
    background-color: #ffffff;
    padding: 40px;
  }
}
.header{
  background-color:#F5F5F5 !important;
  color:#000000;
  font-weight: 500;
  font-size: 14px;
}
.form-title{
  font-size: 20px;
  font-weight: 600;
  padding: 20px 0 20px 5px;
}

//按钮
.el-button{
  height: 28px;
  line-height: 26px;
  padding: 0 20px;
  border-radius: 5px;
  font-size: 13px;
  // letter-spacing: 4px;
}

.el-checkbox__label{
  font-size: 14px;
}

.flex-between{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.flex-start{
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

//checkBox
.el-checkbox,.el-checkbox__input.is-checked+.el-checkbox__label{
  color:#313131;
  font-size: 14px;
}

.el-tabs__header{
  margin: 0;
}

.el-tabs--card>.el-tabs__header .el-tabs__nav{
  border-radius: 0;
}

.form-container{
  .el-form-item{
    margin-right: 0;
    margin-bottom: 20px;
    width: 50%;
    padding-right: 20px;
  }
  .el-form-item__label{
    width: 120px;
  }
  .el-form-item__content{
      width: calc(100% - 140px);
  }
  .el-date-editor.el-input, .el-date-editor.el-input__inner, .el-select{
    width: 100%;
  }
  .dialog_btn{
    padding: 20px 20px 0;
    text-align: center;
  }
}

.form-3{
  .el-form-item{
    margin-right: 0;
    margin-bottom: 20px;
    width: 33.3%;
    padding-right: 20px;
  }
}


//dialog
.dialog{
  border-radius: 5px;
  position: absolute;
  left: 50%;
  top: 45%;
  width: 600px;
  box-sizing: border-box;
  transform: translate(-50%, -45%);
  max-height: calc(100% - 80px);
  max-width: calc(100% - 80px);
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  .el-form-item{
    margin-right: 0;
    margin-bottom: 20px;
    width: 50%;
    padding-right: 20px;
    .el-form-item__label{
      text-align:left;
      color: #313131;
      font-size: 14px;
      padding-bottom: 0px;
      font-weight: normal;
      line-height: normal;
      display: block;
    }
    .el-form-item__content{
      display: block;
    }
    .el-input__inner{
      color: #565656;
      font-size: 14px;
      height: 30px;
      line-height: 30px;
      padding: 0 10px;
    }
    .el-textarea__inner{
      color: #565656;
      font-size: 14px;
      line-height: 30px;
      padding: 0 10px;
      margin: 5px 0;
    }
    .el-date-editor.el-input, .el-date-editor.el-input__inner, .el-select{
      width: 100%;
    }
    input::-webkit-input-placeholder,textarea::-webkit-input-placeholder {
      font-size: 14px;
      font-weight:100;
  }
  input::-moz-placeholder,textarea::-moz-placeholder { font-size: 14px;
    font-weight:100;} /* firefox 19+ */
  input:-ms-input-placeholder,textarea:-ms-input-placeholder { font-size: 14px;
    font-weight:100; } /* Internet Explorer 10+ */
  input:-moz-placeholder,textarea:-moz-placeholder {font-size: 14px;
    font-weight:100;} /* firefox 14-18 */
  }
  .nest-form .el-form-item{
    width: 100%;
    margin-bottom: 0 !important;
  }
  // .el-form-item__error{
  //   line-height: 8px;
  //   padding:0;
  // }
  .el-form-item .el-table td{
    padding: 0;
  }
  .table-container{
    margin-top: 0px;
    background-color: #ffffff;
    padding: 0px 20px 0 0;
    .el-checkbox__label{
      font-size: 14px;
    }

  }
}
.long-dialog{
  width: 900px;
  .cell {
    .el-form-item__content{
      padding: 12px 0;
    }
    .el-form-item__error{
      top:auto;
      bottom:0;
      line-height: 16px;
    }
  }

}

.longer-dialog{
  width: 1200px;
  .cell{
    padding: 12px 10px;
  }
}

.el-input--prefix .el-input__inner{
  padding-left: 30px !important;
}
.el-input--suffix .el-input__inner{
  padding-right: 30px !important;
}
.el-dialog__wrapper{
  background-color: rgba(0,0,0,.2);
  top:0px;
  left:0px;
  padding-left: 230px;
  .el-dialog__header{
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 0;
    height: 60px;
    line-height: 60px;
    background-color: #f5f5f5;
    text-align: left;
    text-indent: 40px;
    .el-dialog__title{
      font-size: 20px;
      line-height: 60px;
      font-weight: bold;
    }
    .el-dialog__headerbtn{
      display:none;
    }
  }
  .el-dialog__body{
    padding: 10px 20px 10px 40px;
    overflow-y: auto;
  }
  .dialog_btn{
    padding: 0px 20px 20px 0;
    text-align: right;
  }
}

.el-pagination button, .el-pagination span:not([class*=suffix]){
  min-width: 22px;
  height: 22px;
  color:#313131;
}

.page{
  padding-top: 20px;
}

.el-pager li{
  margin: 0 4px;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  color:#313131;
  font-weight: 100;
}
.el-pager li.active{
  color:#ffffff;
  background: #409eff;
  border-radius: 5px;
}

.reset {
  font-size: 14px;
  color: #409eff;
  cursor: pointer;
  padding-left: 10px;
}
.table {
  margin-top: 10px;
}
.letter{
  letter-spacing: 0 !important;
}
.add-pos {
  color: #409eff;
  text-align: center;
  display: block;
  height: 50px;
  line-height: 50px;
  border-bottom: 1px solid #ebeef5;
}
.el-dropdown-link {
  cursor: pointer;
  color: #409EFF;
}
.el-button + .el-dropdown {
  margin-left: 15px;
}
.el-dropdown-menu__item {
  min-width: 100px;
}
.el-query{
  position: absolute;
  right: 30px;
}
i.el-icon-arrow-up.el-icon-arrow-up-query{
  margin-left: 10px;
  margin-right: -10px;
  transition: all .5s;
}
i.el-icon-arrow-up.el-icon-arrow-up-query.on{
  transform: rotate(180deg);
}
.el-dropdown-menu {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 0;
  margin: 5px 0;
  background-color: #FFF;
  border: 1px solid #EBEEF5;
  border-radius: 4px;
  -webkit-box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
  box-shadow: 0 2px 12px 3px rgba(0,0,0,.2);
}
.el-input-group__append {
  color: #FFF;
  background-color: #409EFF;
  border-color: #409EFF;
}
